<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>特色情小吃</title>

	</head>

	<body>
	<a href="specialSnack_toAddSnack.action" >添加</a>
		<table border="0" cellspacing="20">
			<tr>
				<td>
					序号
				</td>
				<td>
					名称
				</td>
				<td>
					图片
				</td>
				<td>
					添加时间
				</td>
				<td>
					显示权重
				</td>
				<td>
					操作
				</td>
			</tr>
			<c:forEach items="${specialSnackList}" var="specialSnack"
				varStatus="status">
				<tr>
					<td>
						${status.count}
					</td>
					<td>
					 <a href="specialSnack_toShowSnack.action?specialSnackId=${specialSnack.specialSnackId}">	${specialSnack.name}</a>
					</td>
					<td>
						<img alt="" src="${staticWebsite}${specialSnack.imageUrl}"
							width="200" height="150">
					</td>
					<td>
						<fmt:formatDate value="${specialSnack.addTime}"
							pattern="yyyy年MM月dd日" />
					</td>
					<td>
						${specialSnack.power}
					</td>
					<td>
						<a href="specialSnack_deleteOneSpecialSnack.action?specialSnackId=${specialSnack.specialSnackId}" onclick="return confirm('确认要该食物删除?');"> 删除</a>|
						<a href="specialSnack_toUpdateSnack.action?specialSnackId=${specialSnack.specialSnackId}"> 修改</a>
					</td>
				</tr>

			</c:forEach>
		</table>
	</body>
</html>
